package com.exercise;

public class PhoneA extends Phone {
    double discount;
    String model;

    PhoneA(){
        super();
    }
    PhoneA(String brand, String model){
        super();
        this.brand = brand;
        this.model = model;
    }
    PhoneA(String brand, String model, double discount){
        super(brand);
        this.model = model;
        this.discount = discount;
    }


    public void desc(){
        System.out.println("我是:"+ this.brand +"，手机的机型是："+ this.model);
    }
    @Override
    public void newPrice() {
        System.out.println("新的价格是：" + this.getPrice() * this.discount);
    }

}
